<template>
	<view :style="themeColor">
		<view class="page">
			<view
				class="flex flex-direction flex-wrap align-stretch justify-center benben-position-layout flex feedbackRecord_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-stretch justify-between feedbackRecord_fd0_0'>
					<view class='flex flex-wrap align-center feedbackRecord_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  feedbackRecord_fd0_0_c0_c0'>&#xe794;</text>
					</view>
					<view class='flex flex-wrap align-center'>
						<text class='feedbackRecord_fd0_0_c1_c0'>反馈记录</text>
					</view>
					<view class='flex align-center justify-end feedbackRecord_fd0_0_c2'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---反馈记录flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout feedbackRecord_flex_1">
				<template v-for='(item,key0) in feedbackList'>
					<view class='flex flex-direction flex-wrap align-stretch feedbackRecord_fd1_0' :key='key0'>
						<view class='flex flex-wrap align-center feedbackRecord_fd1_0_c0'>
							<image class='self-start feedbackRecord_fd1_0_c0_c0' mode="aspectFit"
								:src='item.user_avatar'></image>
							<text class='flex-sub feedbackRecord_fd1_0_c0_c1'>{{item.body}}</text>
						</view>
						<view class='flex flex-wrap align-center feedbackRecord_fd1_0_c1'>
							<template v-for='(child,key1) in item.thumb'>
								<view class='flex flex-wrap align-center feedbackRecord_fd1_0_c1_c0' :key='key1'>
									<image class='feedbackRecord_fd1_0_c1_c0_c0' mode="aspectFill" :src='child'
										@tap.stop="multiImagePreview(child,item.thumb,'')"></image>
								</view>
							</template>

						</view>
						<view class='flex flex-wrap align-center feedbackRecord_fd1_0_c2'>
							<text class='feedbackRecord_fd1_0_c2_c0'>反馈类型：</text>
							<text class='feedbackRecord_fd1_0_c2_c0'>{{item.type}}</text>
						</view>
						<view class='flex flex-wrap align-center feedbackRecord_fd1_0_c3'>
							<text class='feedbackRecord_fd1_0_c2_c0'>反馈时间：</text>
							<text class='feedbackRecord_fd1_0_c2_c0'>{{item.create_time}}</text>
						</view>
						<view class='flex flex-wrap align-center feedbackRecord_fd1_0_c4' v-if=" item.is_replay=='1'">
							<text class='self-start feedbackRecord_fd1_0_c4_c0'>平台回复：</text>
							<text class='flex-sub feedbackRecord_fd1_0_c4_c1'>{{item.replay}}</text>
						</view>
					</view>
				</template>

				<benben-empty :list-data="feedbackList">
					<view class='flex flex-direction flex-wrap align-center feedbackRecord_fd1_1'>
						<image class='feedbackRecord_fd1_1_c0' mode="widthFix" :src='STATIC_URL+"58.png"'></image>
						<!-- <text class='feedbackRecord_fd1_1_c1'>暂无数据</text> -->

					</view>
				</benben-empty>
			</view>

			<!---反馈记录flex布局结束-->


		</view>
	</view>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},


		data() {
			return {
				"feedbackList": []
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			this.getFeedbackFunc()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//获取反馈记录信息
			async getFeedbackFunc() {
				//请求方法
				//数据验证

				let datafeedbackList = await this.$api.get(global.apiUrls.post636dc7436d54d, {

				});

				if (datafeedbackList.data.code != 1) {
					this.$message.info(datafeedbackList.data.msg);
					return
				}
				let infofeedbackList = datafeedbackList.data.data;
				this.feedbackList = infofeedbackList.data

			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #fff;
		background-size: 100% auto;
	}

	.feedbackRecord_flex_0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.feedbackRecord_fd0_0_c2 {
		padding: 0rpx 0rpx 0rpx 0rpx;
		width: 200rpx;
	}

	.feedbackRecord_fd0_0_c1_c0 {
		font-size: 34rpx;
		font-weight: 500;
		color: #333333;
		line-height: 50rpx;
	}

	.feedbackRecord_fd0_0_c0_c0 {
		font-size: 36rpx;
		font-weight: 400;
		color: #333;
	}

	.feedbackRecord_fd0_0_c0 {
		width: 200rpx;
	}

	.feedbackRecord_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		line-height: 88rpx;
	}

	.feedbackRecord_flex_1 {
		padding: 0rpx 24rpx 0rpx 24rpx;
	}

	.feedbackRecord_fd1_1_c1 {
		padding: 30rpx 0rpx 0rpx 0rpx;
		color: #929292;
	}

	.feedbackRecord_fd1_1_c0 {
		width: 400rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.feedbackRecord_fd1_1 {
		padding: 200rpx 0rpx 50rpx 0rpx;
	}

	.feedbackRecord_fd1_0_c4_c1 {
		line-height: 40rpx;
		font-size: 28rpx;
		font-weight: 400;
		color: #333333;
	}

	.feedbackRecord_fd1_0_c4_c0 {
		line-height: 40rpx;
		font-size: 28rpx;
		font-weight: 400;
		color: rgba(0, 137, 255, 1);
	}

	.feedbackRecord_fd1_0_c4 {
		background: rgba(246, 247, 249, 1);
		width: 598rpx;
		border-radius: 10rpx 10rpx 10rpx 10rpx;
		margin: 0rpx 0rpx 32rpx 88rpx;
		padding: 24rpx 16rpx 24rpx 16rpx;
	}

	.feedbackRecord_fd1_0_c3 {
		padding: 0rpx 32rpx 0rpx 88rpx;
		margin: 0rpx 0rpx 32rpx 0rpx;
	}

	.feedbackRecord_fd1_0_c2_c0 {
		line-height: 33rpx;
		font-size: 24rpx;
		font-weight: 400;
		color: #999999;
	}

	.feedbackRecord_fd1_0_c2 {
		padding: 0rpx 32rpx 0rpx 88rpx;
		margin: 0rpx 0rpx 16rpx 0rpx;
	}

	.feedbackRecord_fd1_0_c1_c0_c0 {
		width: 180rpx;
		height: 180rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
	}

	.feedbackRecord_fd1_0_c1_c0 {
		margin: 0rpx 0rpx 24rpx 25rpx;
	}

	.feedbackRecord_fd1_0_c1 {
		padding: 0rpx 32rpx 0rpx 59rpx;
	}

	.feedbackRecord_fd1_0_c0_c1 {
		line-height: 43rpx;
		font-size: 28rpx;
		font-weight: 500;
		color: #333333;
	}

	.feedbackRecord_fd1_0_c0_c0 {
		width: 72rpx;
		height: 72rpx;
		border-radius: 36rpx 36rpx 36rpx 36rpx;
		margin: 6rpx 16rpx 0rpx 0rpx;
	}

	.feedbackRecord_fd1_0_c0 {
		margin: 24rpx 0rpx 24rpx 0rpx;
	}

	.feedbackRecord_fd1_0 {
		border-bottom: 1px solid #eee;
	}
</style>